<template>
  <div>

    <ul>
      <li><router-link to="/learn/web-learn">web</router-link></li>
      <li><router-link to="/learn/java-learn">java</router-link></li>
      <li><router-link :to="{name: 'Shop', params: {id: currId}}">去home页（命名路由）</router-link></li>
    </ul>
    学习：<router-view/>
  </div>
</template>

<script>
    export default {
      name: "learn-index",
      data() {
        return {
          currId: "currIdStr"
        };
      }
    }
</script>

<style scoped>

</style>
